<#macro imports type files vendors>
<#-- do nothing -->
<#switch type>
    <#case "css">
        <#--第三方库-->
        <#list vendors as vendor>
        <link href="${'media/vendor/css/'}${vendor}" rel="stylesheet"  type="text/css"/>
        </#list>

        <#--本地文件-->
        <#list files as file>
        <link href="${'media/css/'}${file}" rel="stylesheet" type="text/css"/>
        </#list>


    <#break>
    <#case "js">
        <#--第三方库-->
        <#list vendors as vendor>
        <script src="${'media/vendor/js/'}${vendor}" type="text/javascript"></script>
        </#list>

        <#--本地文件-->
        <#list files as file>
        <script src="${'media/js/'}${file}" charset="utf-8"  type="text/javascript"></script>
        </#list>
    <#break>
    <#default>
        <#-- do nothing -->
</#switch>

</#macro>